# -*- coding: utf-8 -*-
from django.conf import settings
from django.core.management.base import NoArgsCommand
from djwatch.models import Server
import socket
import os

socket.setdefaulttimeout(30)

class Command(NoArgsCommand):
    def handle_noargs(self, **options):
        for server in Server.objects.filter(enabled=True):
            make_graph(server, os.path.join(settings.MEDIA_ROOT, 'graphs'))

def make_graph(server, out_dir):
    pass
